﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace _1.VersionAttribute
{
    [AttributeUsage(AttributeTargets.Method)]
    public class VersionAttribute:Attribute
    {
        private string versionName;
        public string VersionName { get { return this.versionName; } }

        private string comment;
        public string Comment { get { return this.comment; } }

        public VersionAttribute(string versionName, string comment)
        {
            this.versionName = versionName;
            this.comment = comment;
        }

        public VersionAttribute(string versionName)
            : this(versionName, null)
        { 
        }
    }
}
